public class HomeWork14_07{
    public static void main(String[] args){
        String str = "abc,efg,hijklmn,opq,rst,uvw,xyz";
        String[] strArr = ParseString.parseString(str, ",");
        for(String item : strArr){
            System.out.println(item);
        }
    }
}

class ParseString{
    public static String[] parseString(String str, String sign){
        return str.split(sign);
    }
}